package com.example.wly.application_1_homework;

import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        TextView tvInfo=(TextView) findViewById(R.id.tv_info);
        tvInfo.setText("你好");//文本内容
        tvInfo.setTextSize(35);//字体大小
        tvInfo.setTextColor(Color.rgb(0,255,0));
    }
}
